#include <ClipApi.h>

//---------------------------------------------------------------------------//

WORD wWinVersion( void )
{
    asm {
            mov ax, 0x160A
            int 0x2f

    }

    if( ! _AX )
    {
        return _BX >> 8 ;
    }

    return 0;
}

//---------------------------------------------------------------------------//

WORD wWinMode( void )
{
    asm {
            mov ax, 0x160A
            int 0x2f

    }

    if( ! _AX )
    {
        return _CX;
    }

    return 0;
}
//---------------------------------------------------------------------------//

CLIPPER WinVersion( void )
{
    _retni( wWinVersion() );
}

//---------------------------------------------------------------------------//

CLIPPER WinMode( void )
{
    _retni( wWinMode() );
}
//---------------------------------------------------------------------------//
